package com.whitema.test1;

import java.util.Random;

public class Yzm {
    public static String getLoginCode(int a){
        String s ="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
        String codes ="";
        Random r = new Random();
        for (int i = 0; i < a; i++) {
            int index = r.nextInt(s.length());
            codes += s.charAt(index);
        }
        return codes;
    }
}
